package com.yf.quartz.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author chentianwei
 * @date 2024-11-01
 */
@Data
@TableName("sys_quartz_log")
public class QuartzLog implements Serializable {

    @TableId(value = "log_id", type = IdType.AUTO)
    @Schema(name = "ID", hidden = true)
    private Long id;

    @Schema(name = "任务名称", hidden = true)
    private String jobName;

    @Schema(name = "bean名称", hidden = true)
    private String beanName;

    @Schema(name = "方法名称", hidden = true)
    private String methodName;

    @Schema(name = "参数", hidden = true)
    private String params;

    @Schema(name = "cron表达式", hidden = true)
    private String cronExpression;

    @Schema(name = "状态", hidden = true)
    private Boolean isSuccess;

    @Schema(name = "异常详情", hidden = true)
    private String exceptionDetail;

    @Schema(name = "执行耗时", hidden = true)
    private Long time;

    @TableField(fill = FieldFill.INSERT)
    @Schema(name = "创建时间", hidden = true)
    private Timestamp createTime;
}
